<html>
<body>
	
Campaigns
<ul>
{% for campaign in campaigns %}
<li>{{ campaign.campaignname }}</li>
{% endfor %}
</ul>

Creatives
{% for creative in creatives %}

  <div> {{ creative.name }} </div>
  <div> <a href='/jump?click={{ creative.url }}&i={{ creative.key }}'><img src='img?img_id={{ creative.key }}'></img></a>
  <div> <a href='/imgtag?i={{ creative.key }}'> Get Tag</a></div>
  <div> <a href='/clients/creativestats?creative={{ creative.key }}'> Get Stats </a></div>

{% endfor %}

    <form action="/UploadCreatives" enctype="multipart/form-data" method="post"> 
	            <div><label>Campaign:</label></div>
                <select name="campaign">
                {% for campaign in campaigns %}
				<option value='{{ campaign.key }}'>{{ campaign.campaignname }}</option>
				{% endfor %}
				</select>
                <div><label>Name:</label></div>                                                                            
                <div><input type="text" name="name"/></div>                                                                
                <div><label>Width:</label></div>                                                                           
                <div><input type="text" name="width"/></div>                                                               
                <div><label>Height:</label></div>                                                                          
                <div><input type="text" name="height"/></div>    
                <div><label>URL:</label></div>                                                                          
                <div><input type="text" name="url"/></div>                                                          
                <div><label>Image:</label></div>                                                                           
                <div><input type="file" name="img"/></div>                                                                 
                <div><input type="submit" value="Upload"></div>                                                            
              </form>   

</body>

</html>
